# -*- coding: utf-8 -*-#
#-------------------------------------------------------------------------------
# 建立者:        黄周云  
# Name:         test09
# Description:  例25.10
# Author:       ASUS
# Date:         2019/4/8
#-------------------------------------------------------------------------------


import pandas as pd
scientists = pd.DataFrame({
    'Name':['Rosaline Franklin','Willian Gosset'],
    'Occupation':['Chemist','Statistician'],
    'Born':['1920-07-25','1876-06-13'],
    'Died':['1958-04-16','1937-10-16'],
    'Age':[37,61]},columns=['Occupation','Born','Died','Age'],
index=['Rosaline Franklin','William Gosset'])
print(scientists)
#获取Age列的数据，返回一个series对象
ages = scientists['Age']
print(type(ages))
print(ages)
print('mean',":",ages.mean())
print('min',":",ages.min())
print('max',":",ages.max())
print('std',":",ages.std())
print("---------------------")
#对Age降序排列
print(ages.sort_values(ascending=False))
print("------------")
#将ages追加到自身身上
print(ages.append(ages))

